package edu.guigu.todolist.todo.model;

import java.util.List;

import edu.guigu.todolist.todo.model.info.TodoInfo;

public interface TodoModel {



    /** 请求登录业务逻辑处理*/
    void requestTodoData(TodoModel.Callback callback);

    void addTodoData(TodoInfo todoInfo, TodoModel.Callback callback);

    void delTodoData(int position, TodoModel.Callback callback);

    interface Callback {

        void onSuccess(List<TodoInfo> todoInfos,int position);
        void onFailed();
    }
}
